package com.example.myapplication;

import android.app.ListActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ArrayAdapter;
import android.widget.EditText;
import android.widget.ListAdapter;

import androidx.activity.EdgeToEdge;
import androidx.appcompat.app.AppCompatActivity;
import androidx.core.graphics.Insets;
import androidx.core.view.ViewCompat;
import androidx.core.view.WindowInsetsCompat;

import java.util.ArrayList;
import java.util.List;

public class MainActivity4 extends ListActivity implements Runnable {
    double dollarrate,eurorate,wonrate;
    EditText s1,s2,s3;
    @Override
    public void run(){

    }
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        setContentView(R.layout.activity_main4);
        List<String> list1=new ArrayList<String>();
        for(int i=1;i<100;i++){
            list1.add("item"+i);
        }
        String[] list_data={"ont","tow","Theer"};
        ListAdapter adapter=new ArrayAdapter<String>(this,android.R.layout.simple_list_item_1,list_data);
        setListAdapter(adapter);
        ViewCompat.setOnApplyWindowInsetsListener(findViewById(R.id.main), (v, insets) -> {
            Insets systemBars = insets.getInsets(WindowInsetsCompat.Type.systemBars());
            v.setPadding(systemBars.left, systemBars.top, systemBars.right, systemBars.bottom);
            s1=findViewById(R.id.d);
            s2=findViewById(R.id.e);
            s3=findViewById(R.id.w);
            return insets;
        });
    }
    String[] list_data={"ont","tow","Theer"};
    ListAdapter adapter=new ArrayAdapter<String>(this,android.R.layout.simple_list_item_1,list_data);

    public void click(View btn){
        Intent config=new Intent(this, MainActivity3.class);
        double dr=Double.parseDouble(s1.getText().toString());
        double er=Double.parseDouble((s2.getText().toString()));
        double wr=Double.parseDouble(s3.getText().toString());

    }
}